#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <Qtwidgets/QtWidgets>
#include <QtMultimedia/QtMultimedia>
#include "ui_playerwindow.h"
#include "qsongtaste.h"

class playerWindow : public QMainWindow
{
	Q_OBJECT

public:
	playerWindow(QWidget *parent = 0);
	~playerWindow();

public:
	void play(SongItem const&);
	void pause();
	void stop();
	void nextSong();
	void prevSong();
	
private:
	Ui::MainWindow ui;

	QSongTaste* _st;
	QMediaPlayer* _mediaPlayer;
	SongItem _currentSong;
	QTreeWidget* _currentWidget;
};

#endif // MAINWINDOW_H
